<?php
$file = rv('file');
if (!$file)
    die('file?');
if (!($file == 'auto' || $file == 'header'))
    die("Can't edit $file");
$fc = file_get_contents(EZCONFIG_TXT_DIR . $file . '.cfg.txt');
?>
<h2>Boilerplate file <?php echo $file; ?></h2>
<form action="" method="post">
    <input type="hidden" name="action" value="update" />
    <input type="hidden" name="what" value="txt" />
    <input type="hidden" name="file" value="<?php echo $file; ?>" />
    <p>
        <textarea style="width:100%;height:400px;" name="fc">
<?php echo htmlspecialchars($fc); ?>
        </textarea>
        <br />
        <input class="nodisable" type="submit" value="Save" /> <br />
        <input type="hidden" name="file" value="<?php echo $file; ?>" />
    </p>
</form>
<a href="index.php">&laquo; Back</a>
